package com.lichuandi.service.impl;

import com.lichuandi.service.DiscountStrategy;
import org.springframework.stereotype.Component;

@Component("dis") // 注解用于标识这是一个Spring管理的Bean (组件), 这里给它命名为"dis"。唯一的
public class DiscountStrategyImpl implements DiscountStrategy {
    @Override
    public double applyDiscount(double amount) {
        return 0;
    }
}
